package app.k.com.jiecaoapp;


import android.os.Bundle;

import com.viewplug.fragment.TabFragmentActivity;

import app.k.com.jiecaoapp.fragment.ContentFragment;
import app.k.com.jiecaoapp.fragment.MoreFragment;
import app.k.com.jiecaoapp.fragment.PictureFragment;
import app.k.com.jiecaoapp.fragment.VideoFragment;


public class MainActivity extends TabFragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addTab(new FragmentTabSpec("图片",R.drawable.tab_one_select, PictureFragment.class,-1,R.drawable.tab_selector));
        addTab(new FragmentTabSpec("笑话",R.drawable.tab_two_select, ContentFragment.class,-1,R.drawable.tab_selector));
        addTab(new FragmentTabSpec("视频", R.drawable.tab_three_select, VideoFragment.class, -1, R.drawable.tab_selector));
        addTab(new FragmentTabSpec("更多", R.drawable.tab_four_select, MoreFragment.class, -1, R.drawable.tab_selector));
    }

}
